package com.exception;

import com.errorcode.BaseErrorCode;
import com.errorcode.IErrorCode;

public class DbException extends AbstractException {


    public DbException(IErrorCode errorCode) {
        this(null, null, errorCode);
    }

    public DbException(String message) {
        super(message,null, BaseErrorCode.DATA_BAER_ERROR);
    }

    public DbException(String message, IErrorCode errorCode) {
        super(message, null, errorCode);
    }
    public DbException(String message, Throwable cause) {
        super(message, cause, BaseErrorCode.DATA_BAER_ERROR);
    }

    public DbException(String message, Throwable throwable, IErrorCode errorCode) {
        super(message, throwable, errorCode);
    }
}
